<%--
  Created by IntelliJ IDEA.
  User: xiaomi
  Date: 2021/12/28
  Time: 21:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Role&Menu</title>
</head>
<body>
<h1>showrole.jsp</h1>
<form action="/roleservlet?key=update" method="post">
    roleid:<input type="text" name="rid" value="${role.roleId}" readonly>
    rolename:<input type="text" name="rname" value="${role.roleName}">
    <input type="submit" value="更新">
</form>
<br>
<select class="box" size="3" id="menubox" name="menubox" >
    <option value="muser">用户模块</option>
    <option value="mstudent" ${(role.roleId==2||role.roleId==4)?"":"disabled"}>学生模块</option>
    <option value="mteacher" ${(role.roleId==3||role.roleId==4)?"":"disabled"}>讲师模块</option>
</select>
<br><br>
<input type="checkbox" name="menu" value="mu" disable="disable" checked="checked" />用户模块<br>
<input type="checkbox" name="menu" value="ms" disable="disable" ${(role.roleId==2||role.roleId==4)?"checked":""}/>学生模块<br>
<input type="checkbox" name="menu" value="mt" disable="disable" ${(role.roleId==3||role.roleId==4)?"checked":""}/>讲师模块<br>

</body>
</html>
